# -*-* encoding:UTF-8 -*-
# author        : mengy
# date          : 2018/12/3
# description   : 变量类型

list = [1,2,3,4,5,6,7,8,9]
str = "abcdefghij"

print(list[0:2])
print(str[0:2])
print(list[:6])
print(str[:6])
print(list[::-1])
print(list[:-1])
print(list[:-2])
print(list[-5:-2])
print(list[-1])
print(str[::-1])
print(str[:-1])
print(str[-1])

